package com.fish.admin.module.salesman.domain.dto;

import com.fish.admin.module.salesman.validation.DataScope;
import com.fish.common.core.validation.InsertDefaultGroup;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class SalesmanInfoDTO {

    /**
     * 登陆账号
     */
    @NotBlank(message = "登陆账号不能为空")
    private String account;


    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空", groups = {InsertDefaultGroup.class})
    private String secret;
    /**
     * 角色id
     */
    @NotNull(message = "角色id不能为空")
    private Long roleId;

    /**
     * 数据范围
     */
    @DataScope
    private Integer dataScope;

}
